The opening and closing tags for the HEAD element, which encloses the head section, are both optional. If you group all elements which belong in the head together, and do not mix it with the contents of the document (which belongs in the body), this will not cause any problems.
However, a future version of HTML might make using the HEAD element required, to make parsing its contents easier. It is also considered good style to use explicit HEAD and BODY tags to separate the two.
<BASE HREF=URL
>
Using BASE is only necessary when the URL used to retrieve the document is not the correct one. For example, a document may be mirrored on another site, or a document may be accessible via more than one URL. In such a case, this tag can be used to indicate the correct URL. It must be an absolute URL.
When specified, a browser will use this URL to resolve relative URLs against, rather than the URL it got the document from. Note that if the correct URL is a directory URL, it must be specified with the closing slash.
Note that the server must have the capability to perform searches. Simply adding <ISINDEX> in the document will not turn your server into a search engine.
<LINK REL|REV=string
HREF=URL
>
LINK is used to indicate relationships between the current document and the one indicated in the HREF attribute. There are two kinds of relationships. REL indicates that the current document has the indicated relationship to the document specified in the URL. REV indicates a reverse relationship. In other words, the other document has the indicated relationship with this one.
LINK can be used to define the structure of a site. With standard
values, such as "Home", "Next", "Prev", "Glossary" or "Copyright"
it's very easy to see where this document fits in the site. Unfortunately,
very few browsers use this information at this moment. The most popular
version is <LINK REV="made" HREF="mailto:foo@bar.com">
which allows a visitor to send comments to the indicated address with
just one keystroke. That is, if the browser supports it.
For examples, see the LINK section in the Wilbur overview.
<META HTTP-EQUIV|NAME=string
CONTENT=string
>
The META tag is used to provide meta-information about the document, but can also be used to specify headers for the document. By using HTTP-EQUIV, a server should use the name indicated as a header, with the specified CONTENT as its value. If you use NAME instead, only the browser will handle the information.
META statements are most commonly used to advertise the generator of the document, or the name of the author. See the source of this document for an example. The section on META in the Wilbur overview has more examples.
Reference index ~
HTML Basics index ~
Feedback
Copyright © 1996 Arnoud "Galactus" Engelfriet.